{% extends 'video/videos/index.html' %}
{% block head1 %}

  <link rel="stylesheet" href="/static/dist/css/adminlte.min.css">
  <script src="/static/plugins/jquery/jquery.min.js"></script>
{% endblock %}
{% block main%}





<div class="card card-primary">
              <div class="card-header">
                <h3 class="card-title">用户注册</h3>
              </div>
        <form novalidate action="" method="post" enctype="multipart/form-data" class="form-horizontal">
          {% csrf_token %}
          <div class="card-body">
            <div class="form-group">
            <label for="{{form_obj.username.id_for_label}}">{{form_obj.username.label}}</label>
            {{form_obj.username}}
              <span>{{ form_obj.errors.username.0 }}</span>
            </div>

            <div class="form-group">
            <label for="{{form_obj.password.id_for_label}}">{{form_obj.password.label}}</label>
            {{form_obj.password}}
              <span>{{ form_obj.errors.password.0 }}</span>
            </div>


            <div class="form-group">
            <label for="{{form_obj.re_password.id_for_label}}">{{form_obj.re_password.label}}</label>
            {{form_obj.re_password}}
              <span>{{ form_obj.errors.re_password.0 }}</span>
            </div>


            <div class="form-group">
            <label for="{{form_obj.name.id_for_label}}">{{form_obj.name.label}}</label>
            {{form_obj.name}}
              <span>{{ form_obj.errors.name.0 }}</span>
            </div>

            <div class="form-group">
            <label for="{{form_obj.email.id_for_label}}">{{form_obj.email.label}}</label>
            {{form_obj.email}}
              <span>{{ form_obj.errors.email.0 }}</span>
            </div>


            <div class="form-group">
            <label for="{{form_obj.mobile.id_for_label}}">{{form_obj.mobile.label}}</label>
            {{form_obj.mobile}}
              <span>{{ form_obj.errors.mobile.0 }}</span>
            </div>


            <div class="form-group">
            <label for="{{form_obj.user_img.id_for_label}}">{{form_obj.user_img.label}}</label>
            {{form_obj.user_img}}
              <span>{{ form_obj.errors.user_img.0 }}</span>
            </div>
            <img src="/media/{{ user_img }}">



          <div class="col-8">
            <label for="agreeTerms">
              {{ info }}
            </label>
          </div>
          <div class="card-footer">
            <input type="submit" class="btn btn-primary" value="用户注册">
          </div>
          </div>
        </form>
      </div>

{% endblock %}